package sg.edu.nus.iss.billing.gui;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import sg.edu.nus.iss.billing.localization.MessageKeyManager;

public class EditCustomerComplaintPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	public EditCustomerComplaintPanel() {
		setLayout(new BorderLayout(0, 0));

		JPanel panel_3 = new JPanel();
		add(panel_3, BorderLayout.NORTH);
		panel_3.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_1 = new JPanel();
		panel_3.add(panel_1, BorderLayout.NORTH);
		panel_1.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel_3 = new JLabel(MessageKeyManager.getMessage("label.customerComplaintList"));
		panel_1.add(lblNewLabel_3);
		
		JPanel panel = new JPanel();
		panel_3.add(panel, BorderLayout.CENTER);
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[]{0, 0, 0, 0, 0, 0};
		gbl_panel.rowHeights = new int[]{0, 0, 0};
		gbl_panel.columnWeights = new double[]{0.0, 1.0, 1.0, 1.0, 1.0, Double.MIN_VALUE};
		gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
		panel.setLayout(gbl_panel);
		
		JLabel lblComplaintId = new JLabel(MessageKeyManager.getMessage("label.complaintID"));
		lblComplaintId.setHorizontalAlignment(SwingConstants.CENTER);
		GridBagConstraints gbc_lblComplaintId = new GridBagConstraints();
		gbc_lblComplaintId.fill = GridBagConstraints.HORIZONTAL;
		gbc_lblComplaintId.insets = new Insets(0, 0, 5, 5);
		gbc_lblComplaintId.gridx = 1;
		gbc_lblComplaintId.gridy = 0;
		panel.add(lblComplaintId, gbc_lblComplaintId);
		
		JLabel lblAccountId = new JLabel(MessageKeyManager.getMessage("label.customerID"));
		GridBagConstraints gbc_lblAccountId = new GridBagConstraints();
		gbc_lblAccountId.insets = new Insets(0, 0, 5, 5);
		gbc_lblAccountId.gridx = 2;
		gbc_lblAccountId.gridy = 0;
		panel.add(lblAccountId, gbc_lblAccountId);
		
		JLabel lblReportedDate = new JLabel(MessageKeyManager.getMessage("label.reportedDate"));
		GridBagConstraints gbc_lblReportedDate = new GridBagConstraints();
		gbc_lblReportedDate.insets = new Insets(0, 0, 5, 5);
		gbc_lblReportedDate.gridx = 3;
		gbc_lblReportedDate.gridy = 0;
		panel.add(lblReportedDate, gbc_lblReportedDate);
		
		JLabel lblNewLabel_1 = new JLabel(MessageKeyManager.getMessage("label.status"));
		lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
		GridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();
		gbc_lblNewLabel_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_lblNewLabel_1.insets = new Insets(0, 0, 5, 0);
		gbc_lblNewLabel_1.gridx = 4;
		gbc_lblNewLabel_1.gridy = 0;
		panel.add(lblNewLabel_1, gbc_lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("");
		lblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);
		GridBagConstraints gbc_lblNewLabel_2 = new GridBagConstraints();
		gbc_lblNewLabel_2.fill = GridBagConstraints.HORIZONTAL;
		gbc_lblNewLabel_2.insets = new Insets(0, 0, 0, 5);
		gbc_lblNewLabel_2.gridx = 1;
		gbc_lblNewLabel_2.gridy = 1;
		panel.add(lblNewLabel_2, gbc_lblNewLabel_2);
		
		JLabel lblPlaceholder_1 = new JLabel("");
		lblPlaceholder_1.setHorizontalAlignment(SwingConstants.CENTER);
		GridBagConstraints gbc_lblPlaceholder_1 = new GridBagConstraints();
		gbc_lblPlaceholder_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_lblPlaceholder_1.insets = new Insets(0, 0, 0, 5);
		gbc_lblPlaceholder_1.gridx = 2;
		gbc_lblPlaceholder_1.gridy = 1;
		panel.add(lblPlaceholder_1, gbc_lblPlaceholder_1);
		
		JLabel label_1 = new JLabel("");
		label_1.setHorizontalAlignment(SwingConstants.CENTER);
		GridBagConstraints gbc_label_1 = new GridBagConstraints();
		gbc_label_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_label_1.insets = new Insets(0, 0, 0, 5);
		gbc_label_1.gridx = 3;
		gbc_label_1.gridy = 1;
		panel.add(label_1, gbc_label_1);
		
		JComboBox comboBox = new JComboBox();
		GridBagConstraints gbc_comboBox = new GridBagConstraints();
		gbc_comboBox.fill = GridBagConstraints.HORIZONTAL;
		gbc_comboBox.gridx = 4;
		gbc_comboBox.gridy = 1;
		panel.add(comboBox, gbc_comboBox);
		
		JPanel panel_2 = new JPanel();
		panel_3.add(panel_2, BorderLayout.SOUTH);
		GridBagLayout gbl_panel_2 = new GridBagLayout();
		gbl_panel_2.columnWidths = new int[]{0, 100, 0, 100, 0, 0};
		gbl_panel_2.rowHeights = new int[]{23, 0};
		gbl_panel_2.columnWeights = new double[]{1.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};
		gbl_panel_2.rowWeights = new double[]{0.0, Double.MIN_VALUE};
		panel_2.setLayout(gbl_panel_2);
		
		JButton btnNewButton = new JButton(MessageKeyManager.getMessage("button.update"));
		btnNewButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				// TODO
			}
		});
		GridBagConstraints gbc_btnNewButton = new GridBagConstraints();
		gbc_btnNewButton.insets = new Insets(0, 0, 0, 5);
		gbc_btnNewButton.anchor = GridBagConstraints.NORTH;
		gbc_btnNewButton.fill = GridBagConstraints.HORIZONTAL;
		gbc_btnNewButton.gridx = 1;
		gbc_btnNewButton.gridy = 0;
		panel_2.add(btnNewButton, gbc_btnNewButton);
		
		JButton btnNewButton_1 = new JButton(MessageKeyManager.getMessage("button.cancel"));
		GridBagConstraints gbc_btnNewButton_1 = new GridBagConstraints();
		gbc_btnNewButton_1.anchor = GridBagConstraints.NORTH;
		gbc_btnNewButton_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_btnNewButton_1.insets = new Insets(0, 0, 0, 5);
		gbc_btnNewButton_1.gridx = 3;
		gbc_btnNewButton_1.gridy = 0;
		panel_2.add(btnNewButton_1, gbc_btnNewButton_1);

	}

}
